/** When your routing table is too long, you can split it into small modules **/
// 曲线管理
import Layout from '@/layout'


const curveManage = {
  path: '/curve-manage-new',
  component: Layout,
  redirect: '/curve-manage-new/base-curve/generation-scheme/direct-reference',
  name: 'curve-manage-new',
  meta: {
    title: 'curveManageNew',
    icon: 'el-icon-edit-outline'
  },
  children: [
    { //基础曲线
      path: 'base-curve',
      component: () => import('@/views/CurveManageNew/BasicCurve'),  //router-view
      redirect: 'base-curve/generation-scheme/direct-reference',
      name: 'cmn-base-curve',
      meta: {title: 'cmnBaseCurve'},
      children: [
        { //基础曲线生成方案
          path: 'generation-scheme',
          component: () => import('@/views/CurveManageNew/BasicCurve/GenerationScheme'),  //router-view
          redirect: 'generation-scheme/direct-reference',
          name: 'cbc-generation-scheme',
          meta: {title: 'cbcGenerationScheme'},
          children: [
            { //直接引用
              path: 'direct-reference',
              component: () => import('@/views/CurveManageNew/BasicCurve/GenerationScheme/DirectReference'),
              name: 'cgs-direct-reference',
              meta: {title: 'cgsDirectReference'}
            },
            { //算数平均-点差
              path: 'arithmetic-mean',
              component: () => import('@/views/CurveManageNew/BasicCurve/GenerationScheme/ArithmeticMean'),
              name: 'cgs-arithmetic-mean',
              meta: {title: 'cgsArithmeticMean'}
            },
            { //代码引用
              path: 'code-references',
              component: () => import('@/views/CurveManageNew/BasicCurve/GenerationScheme/CodeReferences'),
              name: 'cgs-code-references',
              meta: {title: 'cgsCodeReferences'}
            },
          ]
        },
        { //基础曲线设置
          path: 'base-curve-set',
          component: () => import('@/views/CurveManageNew/BasicCurve/BaseCurveSet'),
          name: 'cbc-base-curve-set',
          meta: {title: 'cbcBaseCurveSet'}
        },
      ]
    },
    { //转移曲线
      path: 'transfer-curve',
      component: () => import('@/views/CurveManageNew/TransferCurve'), //router-view
      redirect: 'transfer-curve/generate-solutions/gdirect-reference',
      name: 'cmn-transfer-curve',
      meta: {title: 'cmnTransferCurve'},
      children: [
        { //转移曲线生成方案
          path: 'generate-solutions',
          component: () => import('@/views/CurveManageNew/TransferCurve/GenerateSolutions'), //router-view
          redirect: 'generate-solutions/gdirect-reference',
          name: 'ctc-generate-solutions',
          meta: {
            title: 'ctcGenerateSolutions',
          },
          children: [
            { //直接引用
              path: 'gdirect-reference',
              component: () => import('@/views/CurveManageNew/TransferCurve/GenerateSolutions/GdirectReference'),
              name: 'cgs-gdirect-reference',
              meta: {title: 'cgsGdirectReference'}
            },
            { //算数平均
              path: 'garithmetic-mean',
              component: () => import('@/views/CurveManageNew/TransferCurve/GenerateSolutions/GarithmeticMean'),
              name: 'cgs-garithmetic-mean',
              meta: {title: 'cgsGarithmeticMean'}
            },
            { //曲线叠加
              path: 'gcurve-superposition',
              component: () => import('@/views/CurveManageNew/TransferCurve/GenerateSolutions/GcurveSuperposition'),
              name: 'cgs-gcurve-superposition',
              meta: {title: 'cgsGcurveSuperposition'}
            },
          ]
        },
        {   //转移曲线设置
          path: 'transfer-curve-set',
          component: () => import('@/views/CurveManageNew/TransferCurve/TransferCurveSet'),
          name: 'ctc-transfer-curve-set',
          meta: {title: 'ctcTransferCurveSet'}
        },
        {   //转移曲线组设置
          path: 'transfer-curve-group-set',
          component: () => import('@/views/CurveManageNew/TransferCurve/TransferCurveGroupSet'),
          name: 'ctc-transfer-curve-group-set',
          meta: {title: 'ctcTransferCurveGroupSet'}
        },
      ]
    },
    {   //曲线数据导入
      path: 'curve-import',
      component: () => import('@/views/CurveManageNew/CurveImport'),
      name: 'cmn-curve-import',
      meta: {title: 'cmnCurveImport'}
    },
    {   //对外发布ftp利率
      path: 'ftp-interest-rate',
      component: () => import('@/views/CurveManageNew/FtpInterestRate'),
      name: 'cmn-ftp-interest-rate',
      meta: {title: 'cmnFtpInterestRate'}
    },

    // {
    //   path: 'inline-edit-table',
    //   component: () => import('@/views/table/inline-edit-table'),
    //   name: 'InlineEditTable',
    //   meta: { title: 'Inline Edit' }
    // },
    // {
    //   path: 'complex-table',
    //   component: () => import('@/views/table/complex-table'),
    //   name: 'ComplexTable',
    //   meta: { title: 'Complex 表格' }
    // }
  ]
}
export default curveManage
